<template>
	<view class="riskControl">
		<view class="riskControl-bg">
		</view>
		<text> 资金数据有异常情况， 请联系客服处理！ </text>
		<view class="riskControl-btn" @click="onPhone"> 联系客服 </view>
	</view>
</template>
<script>
	import phoneLimite from '@/libs/function/phoneLimite.js' //判断是否有拨打电话权限
	export default {
		name: 'risk-control',
		data() {
			return {}
		},
		mounted() {
			// uni.$on('backbutton', this.onBackButton)
		},
		methods: {
			// onBackButton() {
			//   // 阻止物理返回
			// },
			onPhone() {
				phoneLimite(uni.getStorageSync('property_list_by_type').telephone)
			},
		},
		onBackPress(e) {
			//backbutton 是点击物理按键返回，navigateBack是uniapp中的返回（比如左上角的返回箭头）
			if (e.from === 'backbutton') {
				this.cancel()
				return true // 阻止返回
			}
			console.log(e);
		},
	}
</script>
<style lang="less" scoped>
	.riskControl {
		&-bg {
			background: url('../../static/erro.png') center center/cover no-repeat;
			width: 160rpx;
			height: 202.16rpx;
			margin: 160rpx auto 0;
			overflow: hidden;
			display: flex;
			flex-direction: column;
		}

		text {
			width: 100%;
			text-align: center;
			display: block;
			margin-top: 142rpx;
			font-size: 32rpx;
			font-weight: 800;
			color: #262626;
		}

		&-btn {
			width: 694rpx;
			height: 88rpx;
			background: #FCC928;
			box-shadow: 0rpx 6rpx 12rpx 2rpx rgba(255, 133, 29, 0.3);
			border-radius: 12rpx;
			text-align: center;
			line-height: 88rpx;
			margin-bottom: 10rpx;
			color: #333;
			font-weight: 600;
			position: fixed;
			bottom: 0;
			left: 50%;
			margin-left: -347rpx;
		}
	}
</style>